/**
 * 
 */
package com.String;

import java.util.regex.Matcher;
import java.util.regex.Pattern;


/**
 * @author ChengNing
 * @date   2012-10-31
 */
public class RegexTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		RegexTest testor = new RegexTest();
		String string = testor.trimCharpter("125dfd25447dfd55");
		System.out.println(string);

	}
	
    private String trimCharpter(String string) {
    	Pattern pattern = Pattern.compile("[a-z]|[A-Z]");
    	Matcher matcher = pattern.matcher(string);
    	string = matcher.replaceAll("");
    	return string;
	}
	
	public static void replace(){
		
	}

}
